<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="id" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>用户昵称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.user.nickname}" disabled="true" />
        </div>
    </div>
    <div class="form-group">
        <label for="status" class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'通过', '0'=>'待审批','-1'=>'驳回'],$row['status'])}
        </div>
    </div>
    <div class="form-group">
        <label for="manage_remark" class="control-label col-xs-12 col-sm-2">审核备注:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="manage_remark" name="row[manage_remark]" rows="6">{$row.manage_remark}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>公司名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" id="c-name" name="row[name]" class="form-control" value="{$row.name}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="c-area" class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>所在地区:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" id="c-area" name="row[area]" class="form-control" value="{$row[area]}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="c-address" class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>所在地区:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" id="c-address" name="row[address]" class="form-control" value="{$row[address]}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="c-customer_id" class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>介绍人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_id" type="text" data-multiple="false" data-data="{:url('/user/admin.customer/selectpage')}" data-select-to-close-list="false" class="form-control selectpage" data-search-field="customer_realname" data-show-field="customer_realname" name="row[customer_id]" value="{$row['customer_id'] ? $row['customer_id'] : ''}" data-auto_fill_result="false" data-auto-select-first="false" placeholder="关联介绍人">
        </div>
    </div>

    <div class="form-group">
        <label for="c-license_pic" class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>工商执照:</label>
        <div class="col-xs-12 col-sm-8">
            <button id="license_pic" class="btn btn-primary plupload" data-after-upload="changeimg" data-input-id="c-license_pic" data-url="{:url('/attachment/attachment/upload',['folder'=>'user'])}" data-multiple="true" data-preview-id="preview-license_pic"><i class="fa fa-upload"></i> 上传图片</button>
            <div id="preview-license_pic"></div>
            <input type="hidden" name="row[license_pic]" id="c-license_pic" value="{$row[license_pic]}" class="form-control" />
        </div>
    </div>

    <div class="form-group">
        <label for="c-idcard_pic" class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>法人证件:</label>
        <div class="col-xs-12 col-sm-8">
            <button id="idcard_pic" class="btn btn-primary plupload" data-after-upload="changeimg" data-input-id="c-idcard_pic" data-url="{:url('/attachment/attachment/upload',['folder'=>'user'])}" data-multiple="true" data-preview-id="preview-idcard_pic"><i class="fa fa-upload"></i> 上传图片</button>
            <div id="preview-idcard_pic"></div>
            <input type="hidden" name="row[idcard_pic]" id="c-idcard_pic" value="{$row[idcard_pic]}" class="form-control" />
        </div>
    </div>

    <div class="form-group">
        <label for="c-works_pic" class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>现场合影:</label>
        <div class="col-xs-12 col-sm-8">
            <button id="works_pic" class="btn btn-primary plupload" data-after-upload="changeimg" data-input-id="c-works_pic" data-url="{:url('/attachment/attachment/upload',['folder'=>'user'])}" data-multiple="true" data-preview-id="preview-works_pic"><i class="fa fa-upload"></i> 上传图片</button>
            <div id="preview-works_pic"></div>
            <input type="hidden" name="row[works_pic]" id="c-works_pic" value="{$row[works_pic]}" class="form-control" />
        </div>
    </div>


    <div class="form-group hidden layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>